@extends('admin.layouts.app')
@section('content')

                        <!-- Page-Title -->
                        <div class="row">
                            <div class="col-sm-12">
                                <h4 class="page-title">平台管理</h4>
                                <ol class="breadcrumb">
                                  
                                    <li class="active">登录日志</li>
                                </ol>
                            </div>
                        </div>
                        
                        <div class="row">
                        	<div class="col-lg-12">
                        		<div class="card-box">
                        			<div class="row">
			                        	

                              @if(session('rs'))
                              <div class="alert alert-{{session('rs')['status']}}">
                                {{ session('rs')['msg'] }}
                              </div>
                              @endif
			                        
                        			<div class="table-responsive">
                                        <table class="table table-hover">
                                        	<thead>
												<tr>
													<th style="min-width: 35px;">
													ID
                                                        
													</th>
													<th>用户名</th>
													<th>IP</th>
                         
                         
													<th>登录时间</th>
												</tr>
											</thead>
											
                                            <tbody>

                 @foreach($list as $v)
                    <tr>
                        <td>
                          {{$v->id}}
                                                        
                                                      
                        </td>
                                                    
                        <td>
                            {{$v->user_name}}
                        </td>
                        <td>
                            {{$v->ip}}
                        </td>
                               
                               <td>
                            {{$v->created_at}}
                        </td>                     
                                                    
                                                    
                                                
                                                    
                                                   
                                                    >
                                                </tr>
                                            @endforeach    
                                                
                                               
                                               
                                                
                                               
                                                
                                            
                                            </tbody>
                                        </table>
                                    </div>
                        		</div>
                                
                            </div> <!-- end col -->

                            
                        </div>
@endsection
                        
                        
                        

                  
            
    @section('modal')        
        <!-- Modal -->
      <div id="custom-modal" class="modal-demo">
          <button type="button" class="close" onclick="Custombox.close();">
              <span>&times;</span><span class="sr-only">Close</span>
          </button>
          <h4 class="custom-modal-title">添加管理员</h4>
          <div class="custom-modal-text text-left">
              <form class="form-horizontal" role="form" action="{{url('zadmin/admins')}}" method="post">                                    
                                              <div class="form-group">
                                                  <label class="col-md-2 control-label">账号</label>
                                                  <div class="col-md-10">
                                                      <input type="text" class="form-control" name="username" value="" required="">
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label class="col-md-2 control-label" for="example-email">密码</label>
                                                  <div class="col-md-10">
                                                      <input type="text"  name="password" class="form-control" >
                                                  </div>
                                              </div>

                                              <div class="form-group">
                                                  <label class="col-md-2 control-label" for="example-email">确认密码</label>
                                                  <div class="col-md-10">
                                                      <input type="text"  name="password2" class="form-control" >
                                                  </div>
                                              </div>

                                              

                                              <div class="form-group text-center">
                                                  
                                                  <button type="submit" class="btn btn-info waves-effect waves-light">保存</button>
                                              </div>
                                              
                                              
                             {{csrf_field()}}
                                          </form>
          </div>
      </div>
    @endsection        
       

           



    
        @section('js')
        <script type="text/javascript" src="{{asset('hrs/js/laravel.js')}}"></script>
        
        @endsection
    
